package com.geotmt.billingcenter.modules.link.mapper;

import com.geotmt.billingcenter.modules.link.mapper.provider.LinkProvider;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.SelectProvider;

/**
 * @Description 类描述
 * @Author      yanghanwei
 * @Mail        yanghanwei@geotmt.com
 * @Date        2019/4/16 18:08
 * @Version     v1
 **/
@Mapper
public interface LinkMapper {

    /**
     * 根据接口类型 查询接口id(内部)
     * @param type
     * @return
     */
    @SelectProvider(type = LinkProvider.class, method = "getInterfaceIdByType")
    Integer getInterfaceIdByType(String type);

    /**
     * 根据接口类型 查询接口id(外部)
     * @param type
     * @return
     */
    @SelectProvider(type = LinkProvider.class, method = "getOutInterfaceIdByType")
    Integer getOutInterfaceIdByType(String type);

    /**
     * 根据外部接口查询数据源id
     * @param type
     * @return
     */
    @SelectProvider(type = LinkProvider.class, method = "getDsIdByIfType")
    Integer getDsIdByIfType(String type);
}
